package com.bdqn.entity;

import java.util.Date;

/**
 * <h3>项目名称:demo02222</h3>
 * <p>本API描述:新闻实体类</p>
 * <p>@author : AliyZhang</p>
 * <p>@date : 2021-02-23 13:56</p>
 **/
public class News {
    private int id;//新闻编号
    private int categoryId;//新闻分类编号
    private String title;//新闻标题
    private String summary;//新闻摘要
    private String content;//新闻内容
    private String picPath;//新闻图片
    private String author;//新闻作者
    private Date createDate;//新闻创建日期
    private Date modifyDate;//新闻修改日期

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public News(int id, int categoryId, String title, String summary, String content, String picPath, String author, Date createDate, Date modifyDate) {
        this.id = id;
        this.categoryId = categoryId;
        this.title = title;
        this.summary = summary;
        this.content = content;
        this.picPath = picPath;
        this.author = author;
        this.createDate = createDate;
        this.modifyDate = modifyDate;
    }

    public News(int categoryId, String title, String summary, String content, String picPath, String author, Date createDate) {
        this.categoryId = categoryId;
        this.title = title;
        this.summary = summary;
        this.content = content;
        this.picPath = picPath;
        this.author = author;
        this.createDate = createDate;
    }

    public News(int id, int categoryId, String title, String summary, String content, String picPath, String author, Date modifyDate) {
        this.id = id;
        this.categoryId = categoryId;
        this.title = title;
        this.summary = summary;
        this.content = content;
        this.picPath = picPath;
        this.author = author;
        this.modifyDate = modifyDate;
    }

    public News() {
    }

    @Override
    public String toString() {
        return "News{" +
                "新闻编号：" + id +
                ", 新闻分类编号：" + categoryId +
                ", 新闻标题：'" + title + '\'' +
                ", 新闻摘要：'" + summary + '\'' +
                ", 新闻内容：'" + content + '\'' +
                ", 图片路径：'" + picPath + '\'' +
                ", 作者：'" + author + '\'' +
                ", 创建日期：" + createDate +
                ", 修改时间：" + modifyDate +
                '}';
    }
}
